package com.ddwl.schema.bo.shop;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @Author hemiaojun
 * @Date 2021/5/10 10:26
 */
@ApiModel("配送费bo")
@Getter
@Setter
public class DistributionFeeBo {

    @NotNull(message = "店铺id不能为空")
    @ApiModelProperty(value = "店铺id", required = true)
    private String shopId;

    @NotNull(message = "请选择配送方式")
    @ApiModelProperty(value = "配送方式 0快递 1同城配送 2自提",required = true)
    private Integer type;

    @ApiModelProperty(value = "收货人地址id",notes = "配送方式选择同城配送或快递时必传")
    private String userAddrId;

    @ApiModelProperty(value = "购买数量",notes = "配送方式选择快递时必传")
    private Integer quantity;

    @ApiModelProperty(value = "总金额",notes = "配送方式选择同城配送时必传")
    private BigDecimal amount;

}
